package com.dhsc.local.dao.impl.ywjk.jzcl;

import com.dhsc.domain.jkzx.ywjk.jzcl.YcmxlsVo;
import com.dhsc.local.dao.ywjk.jzcl.IYclxwhDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: YclxwhDaoImpl
 * @Description:
 * @date: 2023/9/1 14:09
 * @author: gx
 */
@Repository("yclxwhdao")
public class YclxwhDaoImpl implements IYclxwhDao {

	@Autowired
	private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<YcmxlsVo> queryYclxwh(YcmxlsVo ycmxlsVo) {
        return localSqlSessionTemplate.selectList("YclxwhMapper.queryYclxwh",ycmxlsVo);
    }

    @Override
    public int insertYclxwh(YcmxlsVo ycmxlsVo) {
        return localSqlSessionTemplate.insert("YclxwhMapper.insertYclxwh",ycmxlsVo);
    }

    @Override
    public int updateYclxwh(YcmxlsVo ycmxlsVo) {
        return localSqlSessionTemplate.update("YclxwhMapper.updateYclxwh",ycmxlsVo);
    }

    @Override
    public List<YcmxlsVo> queryQsTxtdm(YcmxlsVo ycmxlsVo) {
        return localSqlSessionTemplate.selectList("YclxwhMapper.queryQsTxtdm",ycmxlsVo);
    }
}
